Item Property (AddressEntries Collection)
The Item
property returns a single AddressEntry
Syntax
objAddrEntriesColl.Item(index)
objAddrEntriesColl.Item(prefix)
index
A long
integer ranging from 1 to the size of the AddressEntries collection.
prefix
A string
representing a prefix substring of an AddressEntry object s Name
Data Type
Object
Remarks
The Item
property is useful for satisfying syntax requirements when obtaining a member
of an AddressEntries collection.
A large
collection cannot support true integer indexing, and the Item(index)
syntax cannot be used for arbitrary selection of members of the collection.
Programmers needing to access individual objects in a large collection are
strongly advised to use the Visual Basic For Each statement or the Get
methods, particularly GetFirst
The Item(index)
syntax is provided solely as a placeholder in an indexed loop, such as the For
... Next construction in Visual Basic. Such a loop must proceed forward
from the beginning of the collection, and the index must have initial and
increment values of 1. Results are undefined for any other procedure.
For more
information on using the Count and Item properties in a large
collection, see the example in the Count
The Item(prefix)
syntax returns the first AddressEntry object whose Name
The Item
property is the default property of an AddressEntries collection, meaning that
AddressEntries(prefix) is syntactically equivalent to
AddressEntries.Item(prefix) in Visual Basic code.